import service from "@/utils/request.js";

// list接口
export function userListApi(data) {
    return service({
        url: '/users/list',
        method: 'GET',
        params: data
    })
}
// 添加接口
export function userAddApi(data) {
    return service({
        url: '/users/add',
        method: 'POST',
        data
    })
}
// 删除接口
export function userDeleApi(data) {
    return service({
        url: '/users/dele',
        method: 'GET',
        params: data
    })
}
// 编辑接口
export function userEditApi(data) {
    return service({
        url: '/users/edit',
        method: 'POST',
        data
    })
}
// 登录接口

export function userLoginApi(data) {
    return service({
        url: '/users/login',
        method: 'POST',
        data
    })
}